import axios from "axios";

// 发送验证码接口
export const getCodeApi = (phone, scene) => {
  return axios.post('http://localhost:8080/api/auth/sendCode', {
    phone,
    scene
  }, { headers: {'Content-Type': 'application/json'}}
  );
};


// 注册接口
export const handleRegisterApi = (registerData) => {
  return axios.post('http://localhost:8080/api/auth/register', registerData,
      { headers: {'Content-Type': 'application/json'}}
  );
};
